DCA Free Questions Good Demo For Docker DCA Exam Top-Recommended DCA Exam Questions [2022] Pass Docker DCA Exam 1. A server is running low on disk space. What command can be used to check the disk usage of images, containers, and volumes for Docker engine? A. 'docker system df' B. 'docker system prune' C. 'docker system free' D. 'docker system ps' Answer: A 2.What is the recommended way to configure the daemon flags and environment variables for your Docker daemon in a platform independent way? A. Set the configuration options using the ENV variable B. Set the configuration options in '/etc/docker/daemon.json' C. Set the configuration DOCKER_OPTS in '/etc/default/docker' D. Using 'docker config' to set the configuration options. Answer: B 3.You add a new user to the engineering organization in DTR. Will this action grant them read/write access to the engineering/api repository? Solution: Add them to a team in the engineering organization that has read/write access to the engineering/api repository. A. Yes B. No Answer: B 4.How do you change the default logging driver for the docker daemon in Linux? A. Set the value of log-driver to the name of the logging driver In the daemon.json In /etc/doc B. Use the -log-driver' flag when you run a container. C. At the command line, type: docker log driver set <driver name> D. Install a logging agent on the Linux host. Answer: D 5.Is this an advantage of multi-stage builds? Solution: optimizes Images by copying artifacts selectively from previous stages A. Yes B. No Answer: A Top-Recommended DCA Exam Questions [2022] Pass Docker DCA Exam 6.Will this Linux kernel facility limit a Docker container's access to host resources, such as CPU or memory? Solution: namespaces A. Yes B. No Answer: B 7.The following Docker Compose file is deployed as a stack: Is this statement correct about this health check definition? Solution: Health checks test for app health ten seconds apart. If the test fails, the container will be restarted three times before it gets rescheduled. A. Yes B. No Answer: B 8.You created a new service named 'http' and discover it is not registering as healthy. Will this command enable you to view the list of historical tasks for this service? Solution: 'docker service ps http' A. Yes B. No Answer: B 9.Is this statement correct? Solution: A Dockerfile provides instructions for building a Docker image A. Yes B. No Answer: B Top-Recommended DCA Exam Questions [2022] Pass Docker DCA Exam 10.You are running only Kubernetes workloads on a worker node that requires maintenance, such as installing patches or an OS upgrade Which command must be run on the node to gracefully terminate all pods on the node, while marking the node as unschedulable? A. 'docker node update --availability drain <node name>' B. 'docker swarm leave' C. 'kubectl drain <node name>' D. 'kubectl cordon <node name>' Answer: D 11.Seven managers are in a swarm cluster. Is this how should they be distributed across three datacenters or availability zones? Solution: 3-2-2 A. Yes B. No Answer: A 12.In the context of a swarm mode cluster, does this describe a node? Solution: a physical machine participating in the swarm A. Yes B. No Answer: B 13.How do you configure Docker engine to use a registry that is not configured with TLS certificates from a trusted CA? A. Set IGNORE_TLS in the 'daemon.json' configuration file. B. Set and export the IGNORE_TLS environment variable on the command line C. Set INSECURE_REGISTRY in the '/etc/docker/default' configuration file D. Pass the '--insecure.-registry' flag to the daemon at run time Answer: D 14.You configure a local Docker engine to enforce content trust by setting the environment variable DOCKER_CONTENT_TRUST=1. If myorg/myimage: 1.0 is unsigned, does Docker block this command? Solution: docker service create myorg/myimage:1.0 A. Yes B. No Answer: B Top-Recommended DCA Exam Questions [2022] Pass Docker DCA Exam 15.Is this the purpose of Docker Content Trust? Solution: Enable mutual TLS between the Docker client and server. A. Yes B. No Answer: B 16.Will this action upgrade Docker Engine CE to Docker Engine EE? Solution: Uninstall 'docker-ce' package before installing 'docker-ee' package. A. Yes B. No Answer: A 17.What is the difference between a resource limit and a resource reservation when scheduling services? A. A resource limit and a resource reservation can be used interchangeably. B. A resource limit is a soft limit for your service, while a reservation is hard limit and the docker engine will do its best to keep your service at the limit. C. A resource limit is used to find a host with adequate resources for scheduling a hard limit for your service, while a reservation is hard limit for your service. D. A resource limit is hard limit for your service, while a reservation is used to find a host with adequate resources for scheduling. Correct Answer: A 18.Some Docker images take time to build through a Continuous Integration environment. You want to speed up builds and take advantage of build caching. Where should the most frequently changed part of a Docker image be placed in a Dockerfile? A. at the bottom of the Dockerfile B. after the FROM directive C. at the top of the Dockerfile D. in the ENTRYPOINT directive Answer: A 19.What is the purpose of multi-stage builds? A. Better logical separation of Dockerfile instructions for better readability B. Optimizing images by copying artifacts selectively from previous stages C. Better caching when building Docker images D. Faster image builds by allowing parallel execution of Docker builds Answer: B 20.An application image runs in multiple environments, and each environment uses different certificates and ports, what is the best practice to deploy the containers? A. Create a Dockerfile for each environment, specifying ports and ENV variables for certificates. B. Create a Dockerfile for each environment, specifying ports and Docker secrets for certificates. C. Create images that contain the specific configuration for every environment. D. Create a config file for each environment. Answer: D 21.Will this command list all nodes in a swarm cluster from the command line? Solution: 'docker swarm nodes' A. Yes B. No Answer: B Go To DCA Exam Questions Full Version